<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{:session('cp.cpsysname')}--商户管理平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="{:config('webconfig.description');}">
    <meta name="keywords" content="{:config('webconfig.keywords');}">
    <meta name="author" content="runoob">
    <link rel="stylesheet" href="__STATIC_URL__/static/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/index.css"/>
    <script src="__STATIC_URL__/static/js/jquery-2.1.4.min.js"></script>
    <script src="__STATIC_URL__/static/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <style>
        .filePicker{
            margin-top: -5px;
            width: 150px;
            height: 44px;
            background: #00A2D4;
            color: #fff;
            text-align: center;
            line-height: 44px;
            border-radius: 4px;
            cursor: pointer;
        }
        .file{
            position: absolute;
            left: 14px;
            top: -5px;
            width: 150px;
            height: 44px;
            line-height: 44px;
            opacity: 0;
            cursor: pointer;
        }
        .img-file{
            width: 100px;
            height: 100px;
            display: block;
            margin-left: 26px;
            margin-top: 10px;
            display: none;
        }
        .form-control{
            width: 50%;
        }
        .error{
            color: #989898;
        }
    </style>
</head>
<body>
{include file='public/header'/}
<!------------------导航-------------------------->
<section id="content">
    {include file='public/left'/}
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <div class="page-heading mgr15 mgl15">
            <ol class="breadcrumb">
                <li>当前位置是:</li>
                <li>
                    <a href="{:url('cardus/cardinfo',['card_id'=>$user['card_id']])}">会员卡</a>
                </li>
                <li>
                    <a href="javascript:history.back();">领卡会员</a>
                </li>
                <li class="active" style="color: #02b87f;">修改会员信息</li>
            </ol>
        </div>
        <div class="panel mgr15 mgl15">
            <form class="form-horizontal adminex-form" action='' method="post">
            <div class="panel-heading addCharts" style="background:#ededed;">
                会员积分
                <span class="active" style="color: #02b87f;">
                    <a href="{:url('cardus/getcardinfos',['id'=>$user['id']])}" target="view_window">获取激活信息</a>
                </span>
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-sm-2 col-sm-2 control-label">会员卡ID：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name='' value="{$user['card_id']}" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-sm-2 control-label">code：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name='' placeholder="{$user['code']}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-sm-2 control-label">昵称：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name='nickname' placeholder="{$user['nickname']}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-sm-2 control-label">姓名：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name='name' placeholder="{$user['name']}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-sm-2 control-label">电话：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name='phone' placeholder="{$user['phone']}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-sm-2 control-label">生日：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name='birthday' placeholder="{$user['birthday']}">
                    </div>
                </div>

            </div>
            <div class="panel-footer">
                <button type="submit" class="btn btn-primary" >保存</button>
            </div>
            </form>
        </div>
        {include file='public/footer'/}
    </div>
</section>
</body>

<!--一级和二级类目选择-->
<script type="text/javascript">
//    var primary = document.form.primary;
//    var secondary = document.form.secondary;
//    function first(){
//        //指定first的子元素option的长度
//        primary.length=arr_first.length;
//        for(var i=0;i<arr_first.length;i++){
//            primary.options[i].text=arr_first[i].name;
//            primary.options[i].value=arr_first[i].value;
//        }
//        index = primary.selectedIndex;
//        secondary.length=arr_second[index].length;
//        for(var i=0;i<arr_second[index].length;i++){
//            secondary.options[i].text=arr_second[index][i].name;
//            secondary.options[i].value=arr_second[index][i].value;
//        }
//    };
//    function second_lb(){
//        //修改一级类别列表中默认选择项		var index=0;
//        //一级类别选中下标
//        secondary.length=0;
//        index = primary.selectedIndex;
//        secondary.length=arr_second[index].length;
//        for(var i=0;i<arr_second[index].length;i++){
//            secondary.options[i].text=arr_second[index][i].name;
//            secondary.options[i].value=arr_second[index][i].value;
//        }
//    }
</script>

</html>
